import request from "@/utils/request";

// 获取列表
export function getAllList(query) {
  return request({
    url: "/houMonData/getPage",
    method: "get",
    params: query,
  });
}

// 查看
export function getDetail(id) {
  return request({
    url: "/houMonData/findById",
    method: "get",
    params:id
  });
}

// 获取结构类型
export function getAllStructureTypeList(query) {
  return request({
    url: "/houseStructureManagement/findAll",
    method: "get",
  });
}

// 获取编号
export function getCode(id) {
  return request({
    url: "/houMonData/getHouMonCode",
    method: "get",
    params:id
  });
}

// 获取所有抽样点
export function getSamPoiList(query) {
  return request({
    url: "/samPoiData/getSamPoiList",
    method: "get",
    params: query,
  });
}

// 保存审核
export function auditSave(data) {
  return request({
    url: "/houMonData/check",
    method: "post",
    data: data,
  });
}

//修改
export function updateAudit(query) {
  return request({
    url: "/houMonData/update",
    method: "post",
    data: query,
  });
}
// 批量删除
export function deleteAudit(id) {
  return request({
    url: "/houMonData/delete/"+id,
    method: "post",
  });
}